package com.zfast.forge.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;


/**
 * 怪兽卡
 *
 * @author zgn
 * @email
 * @date 2023-03-13 16:11:17
 */
@Data
@SuperBuilder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_ygo_card_monster")
@ApiModel(value = "CardMonster", description = "怪兽卡")
public class CardMonster extends Card implements Serializable{
    private static final long serialVersionUID=1L;

    @Id
    @Column(name = "id")
    @ApiModelProperty("主键")
    private String id;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Column(name = "create_date")
    @ApiModelProperty("创建时间")
    private Date createDate;

    @Column(name = "create_name")
    @ApiModelProperty("创建人")
    private String createName;

    @Column(name = "create_id")
    @ApiModelProperty("创建人主键")
    private String createId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Column(name = "update_date")
    @ApiModelProperty("更新时间")
    private Date updateDate;

    @Column(name = "update_name")
    @ApiModelProperty("更新人")
    private String updateName;

    @Column(name = "update_id")
    @ApiModelProperty("更新人主键")
    private String updateId;

    @Column(name = "enable_flag")
    @ApiModelProperty("删除标志0:无;1有")
    private Boolean enableFlag;

    @Column(name = "pid")
    @ApiModelProperty("通用卡id")
    private String pid;

    @Column(name = "race")
    @ApiModelProperty("种族")
    private Integer race;

    @Column(name = "level")
    @ApiModelProperty("等级")
    private Integer level;

    @Column(name = "attack")
    @ApiModelProperty("攻击力")
    private Integer attack;

    @Column(name = "defend")
    @ApiModelProperty("防御力")
    private Integer defend;

    @Column(name = "dialogue")
    @ApiModelProperty("默认登场对话")
    private String dialogue;

    @Transient
    @ApiModelProperty("模糊查询字段")
    private String whe;
}
